home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2952 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: bcfreenet.seflin.lib.fl.us!bcfreenet!z007400b
  2. From: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Segmentation fault at return statement. Can't figure out ....
  5. Date: 24 Jan 1996 20:11:14 GMT
  6. Organization: SEFLIN Free-Net - Broward
  7. Message-ID: <4e63p2$ljg@bcfreenet.seflin.lib.fl.us>
  8. References: <4dm2n1$egk@murphy.servtech.com> <4dop08$kdi@bcfreenet.seflin.lib.fl.us> <9601201829.AA02117@dxmint.cern.ch>
  9. NNTP-Posting-Host: bcfreenet.seflin.lib.fl.us
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Dan Pop (danpop@mail.cern.ch) wrote:
  13. : z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman) writes:
  14.  
  15. : >Avijit Dasgupta (avi@servtech.com) wrote:
  16. : >
  17. : >: test.c:
  18. : >
  19. : >: test()
  20. : >: {
  21. : >
  22. : >: .
  23. : >: ..
  24. : >: .
  25. : >: 83: return(999); <----- Segmentation fault at this stmt.
  26. : >: }
  27. : >
  28. : >--
  29. : >********begin r.s. response*********
  30. :          ^^^^^^^^^^^^^^^^^^^
  31. : Very important hint.  Without it I would have never figured out where the
  32. : "r.s. response" begins.
  33.  
  34. : >    'test'
  35. : >    is likely to be
  36. : >    a command of
  37. : >    the
  38. : >        operating system
  39.  
  40. : So what?  There's no possible conflict/interaction between a function
  41. : name in a C program and the name of an OS command.
  42.  
  43. : >    1)    look it up.
  44. : >    2)    rename yours.
  45. :                 ^^^^^^^^^^^^^
  46. : Why???
  47.  
  48. : >********end r.s. response***********
  49. :          ^^^^^^^^^^^^^^^^^
  50. : See my first comment, above.
  51.  
  52. : Dan
  53. : -- 
  54. : Dan Pop
  55. : CERN, CN Division
  56. : Email: danpop@mail.cern.ch 
  57. : Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  58.  
  59. --
  60. *********begin r.s. response************
  61.  
  62.     dan,
  63.         is it not possible
  64.         that the link order of
  65.         test.c etc.
  66.     resulted in an executable named
  67.     test.exe,
  68.     test.com
  69.     or such?
  70.  
  71. *********end r.s. response**************
  72. Ralph Silverman
  73. z007400b@bcfreenet.seflin.lib.fl.us
  74.  
  75.